<template>
  <!--参与者维护明细页面弹出框-->
  <el-dialog
    title="参与者维护明细"
    center
    :visible.sync="open"
    width="1024px"
    :close-on-click-modal="true"
    @close="closeFn"
  >
    <el-form ref="detailsForm" :model="formData" label-width="150px">
      <el-row type="flex">
        <el-col :span="12">
          <el-form-item label="行号：" prop="bankCode">
            <el-input v-model="formData.bankCode" placeholder="" disabled />
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="行别代码：" prop="category">
            <el-input v-model="formData.category" placeholder="" disabled />
          </el-form-item>
        </el-col>
      </el-row>
      <el-row type="flex">
        <el-col :span="12">
          <el-form-item label="类别：" prop="bankType">
            <el-select v-model="formData.bankType" placeholder="" style="width: 100%" disabled>
              <el-option
                v-for="dict in dictMap.PT_TYPE"
                :key="dict.value"
                :label="`${dict.value}-${dict.text}`"
                :value="dict.value"
              ></el-option>
            </el-select>
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="一二代标志：" prop="cnapsFlag">
            <el-select v-model="formData.cnapsFlag" placeholder="" style="width: 100%" disabled>
              <el-option
                v-for="dict in dictMap.CNAPS_FLAG_BANK"
                :key="dict.value"
                :label="`${dict.value}-${dict.text}`"
                :value="dict.value"
              ></el-option>
            </el-select>
          </el-form-item>
        </el-col>
      </el-row>
      <el-row>
        <el-col :span="12">
          <el-form-item label="所属直参行号：" prop="drctBankCode">
            <el-input v-model="formData.drctBankCode" placeholder="" disabled />
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="所属法人：" prop="lglPrsn">
            <el-input v-model="formData.lglPrsn" placeholder="" disabled />
          </el-form-item>
        </el-col>
      </el-row>
      <el-row>
        <el-col :span="12">
          <el-form-item label="本行上级参与机构：" prop="highOrg">
            <el-input v-model="formData.highOrg" placeholder="" disabled />
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="承接行行号：" prop="bearBrno">
            <el-input v-model="formData.bearBrno" placeholder="" disabled />
          </el-form-item>
        </el-col>
      </el-row>
      <el-row>
        <el-col :span="12">
          <el-form-item label="管辖人行行号：" prop="chargeBrno">
            <el-input v-model="formData.chargeBrno" placeholder="" disabled />
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="入账行行号：" prop="acctBrno">
            <el-input v-model="formData.acctBrno" placeholder="" disabled />
          </el-form-item>
        </el-col>
      </el-row>
      <el-row>
        <el-col :span="12">
          <el-form-item label="所属CCPC：" prop="lglCcpc">
            <el-input v-model="formData.lglCcpc" placeholder="" disabled />
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="所在城市代码：" prop="lglCtCode">
            <el-input v-model="formData.lglCtCode" placeholder="" disabled />
          </el-form-item>
        </el-col>
      </el-row>
      <el-row>
        <el-col :span="12">
          <el-form-item label="参与机构全称：" prop="orgFullName">
            <el-input v-model="formData.orgFullName" placeholder="" disabled />
          </el-form-item>
        </el-col>
      </el-row>
      <el-row>
        <el-col :span="24">
          <el-form-item label="加入业务系统标识：">
            <el-checkbox-group v-model="checkList">
              <el-checkbox label="大额系统" disabled></el-checkbox>
              <el-checkbox label="小额系统" disabled></el-checkbox>
              <el-checkbox label="网银系统" disabled></el-checkbox>
            </el-checkbox-group>
          </el-form-item>
        </el-col>
      </el-row>
      <el-row type="flex">
        <el-col :span="12">
          <el-form-item label="状态：" prop="status">
            <el-select v-model="formData.status" placeholder="" style="width: 100%" disabled>
              <el-option
                v-for="dict in dictMap.JOIN_SYSTEM"
                :key="dict.value"
                :label="`${dict.value}-${dict.text}`"
                :value="dict.value"
              ></el-option>
            </el-select>
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="电话/电挂：" prop="tel">
            <el-input v-model="formData.tel" placeholder="" disabled />
          </el-form-item>
        </el-col>
      </el-row>
    </el-form>
    <div slot="footer" class="dialog-footer">
      <el-button @click="closeFn">关闭</el-button>
    </div>
  </el-dialog>
</template>
<script>
export default {
  name: "ParticipantQueryDetails",
  components: {},
  props: {
    dictMap: {
      type: Object,
      default: () => {
        return {};
      },
    },
    formData: {
      type: Object,
      default: () => {
        return {};
      },
    },
  },
  data() {
    return {
      // 是否显示弹出层
      open: false,
      isLoading: false,
      checkList: [],
    };
  },
  mounted() {},
  watch: {
    open(d) {
      if (d) {
        let list = this.formData.joinBizFlagDesc.split(" ");
        this.checkList = [list[0], list[1], list[2]];
      }
    },
  },
  methods: {
    // 表单重置
    reset() {
      this.resetForm("detailsForm");
    },
    closeFn() {
      this.open = false;
      this.reset();
    },
    show() {
      this.open = true;
    },
  },
};
</script>
